/* 路由过渡效果 */
.fade-enter {
	opacity: 0;
	transform: translateX(-30px);
}

.fade-enter-active,
.fade-exit-active {
	opacity: 1;
	transition: all 500ms ease-out;
	transform: translateX(0);
}

.fade-exit {
	opacity: 0;
	transform: translateX(30px);
}

.loading {
	.ant-spin-spinning {
		width: 100%;
		height: 90vh;
	}
}

$borderColor: #d8d8d8;

.app-sider {
	border-right: 1px solid $borderColor;
	overflow-y: auto;
	overflow-x: hidden;
}

.ant-menu-inline {
	border: none;
}

.logo {
	height: 110px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: initial;
	font-size: 28px;
	background: transparent;
}

.top-header {
	background: #fff;
	border-bottom: 1px solid $borderColor;
	padding: 0 15px;
	position: relative;

	.top-header-inner {
		height: 70px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;

		.header-title {
			flex: 1;
			padding-left: 15px;
			font-size: 20px;
		}

		.header-right {
			display: flex;
			justify-content: flex-end;
			align-items: center;
			width: 320px;

			>div {
				margin-left: 20px;
			}
		}
	}

	.drop-list {
		li {
			padding: 10px 15px;
		}
	}
}

.shadow-radius {
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.1);
	border-radius: 2px;
	padding: 15px;
	background-color: #fff !important;
	min-height: 85vh;
}

.public-title {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid rgb(217, 217, 217);
	margin-bottom: 10px;
}

.link-button {
	background-color: transparent;
	border: none;
	cursor: pointer;
	display: inline;
	margin: 0;
	padding: 0;
	color: #1890ff;
}

.link-button:hover,
.link-button:focus {
	text-decoration: none;
}

.tags {
	display: flex;
	margin-bottom: 4px;

	.tags-scroll {
		position: relative;
		width: 100%;
		height: 31px;
	}
}

.tags-list {
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	padding: 0;
	transition: all 0.2s ease-in-out 0s;
	width: 100%;

	li {
		list-style: none;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border: 1px solid $borderColor;
		padding: 4px 22px;
		position: relative;
		margin-right: 4px;
		word-break: keep-all;
		cursor: pointer;
		white-space: nowrap; // 禁止换行

		&:before {
			content: "";
			display: block;
			width: 6px;
			height: 6px;
			background: #b1b1b1;
			border-radius: 50%;
			left: 8px;
			top: 12px;
			position: absolute;
		}

		&:first-child {

			em,
			&:before {
				display: none;
			}
		}

		em {
			font-style: normal;
			font-size: 16px;
			margin-left: 4px;
			width: 14px;
			height: 14px;
			position: absolute;
			right: 4px;
			top: 2px;
		}

		.hide {
			display: none;
		}
	}

	.isActive {
		color: #fff;
		background: linear-gradient(to right, #2187e8, #1890ff);
		border-color: #1890ff;

		&:before {
			background: #fff;
		}
	}
}

.search-form {

	// padding: 5px;
	.ant-form-item {
		display: flex;
		margin-bottom: 14px;
	}

	.ant-form-item-control-wrapper {
		flex: 1;
	}
}

.serarch-btns {
	display: flex;

	.ant-form-item {
		margin-right: 10px;
	}
}

.breadCrumb {
	padding: 15px;
	padding-bottom: 0;
}

.list {
	display: flex;
	flex-wrap: wrap;
	padding: 0;

	li {
		width: calc(100% / 8);
		height: 100px;
		list-style: none;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		cursor: pointer;

		i {
			font-size: 28px;
			margin-bottom: 5px;
		}

		&:hover {
			background: #e4e4e4;
			transition: all 0.15s ease-in-out 0s;

			i {
				transform: scale(1.5);
				transition: all 0.15s ease-in-out 0s;
			}
		}
	}
}

.OrderDatePicker input {
	color: red($color: #000000);
}

.hideColumn {
	display: none;
}

.x-table .react-resizable {
	position: relative;
	background-clip: padding-box;
}

.x-table .react-resizable-handle {
	position: absolute;
	width: 10px;
	height: 100%;
	bottom: 0;
	right: -5px;
	cursor: col-resize;
	z-index: 1;
}

// 表头样式
.ant-table-thead>tr>th {
	background-color: #e8e8e8 !important;
	color: rgb(0, 0, 0);
	// font-size: 15px;
	font-weight: bold;
}

// table滚动条样式
.ant-table {
	.ant-table-body-inner {
		overflow-y: hidden;
	}

	//设置表格头部竖向滚动宽度
	.ant-table-header::-webkit-scrollbar {
		width: 10px;
	}

	//设置表格体滚动宽度
	.ant-table-body,
	.ant-table-body-inner {
		&::-webkit-scrollbar {
			width: 10px;
			height: 10px;
		}

		&::-webkit-scrollbar-thumb {
			border-radius: 4px;
			box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
			background: rgb(82, 80, 80);
		}

		&::-webkit-scrollbar-track {
			box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
			border-radius: 4px;
			background: #ededed;
		}
	}

	.ant-table-scroll {
		padding-right: 0px;
	}

	// 解决固定列底部预留的空隙
	.ant-table-fixed-left,
	.ant-table-fixed-right {
		.ant-table-body-outer {
			margin-bottom: -10px !important;
		}
	}
}

.editable-cell {
	position: relative;
}

.editable-cell-value-wrap {
	padding: 5px 12px;
	cursor: pointer;
}

.editable-row12 {
	background-color: #f5f5f5;
}

.editable-row123 {
	background-color: #dcdd93;
}

.editable-row :hover .editable-cell-value-wrap {
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	padding: 4px 11px;
}

.layout-model {
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.1);
	border-radius: 2px;
	padding: 15px;
	background-color: #fff !important;
	// min-height: 85vh;
	margin: 10px;
}

.dynamic-column {
	background: #fff;
	padding: 5px;
	border: 1px solid;
	border-color: rgba(0, 0, 0, 0.1);
	box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);

	:global {
		.ant-checkbox-group-item+.ant-checkbox-group-item {
			display: block;
		}
	}
}

.allowDrafting-hidden {
	// visibility: hidden;
	display: none;
}

.ant-form-item {
	margin-bottom: 14px;
}

.word-bread-table {
	word-break: break-all;
	text-overflow: ellipsis;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	width: 180px;
}

.ant-layout.ant-layout-has-sider>.ant-layout,
.ant-layout.ant-layout-has-sider>.ant-layout-content {
	overflow-x: auto;
}

.svgicon path {
	fill: #fff;
}

.svgicon_dark path {
	fill: #000000;
}

.ant-input[disabled],
.ant-select-disabled {
	color: #000000 !important;
}

.ant-checkbox-wrapper-disabled {
	span {
		color: #595959 !important;
	}
}

// 表格head样式
// thead.ant-table-thead {
//     background-color: #ddd;
// 	.ant-table-header-column{
// 		.ant-table-column-title {
// 			font-weight: bold;
// 			font-size: 12px;
// 		}
// 	}
// }
// 表格奇数行颜色
.par_gray_odd {
	background-color: #ddd;
}

.addForm_File {
	.ant-upload-list.ant-upload-list-text {
		// display: none;
	}

	.upload_list {
		div{
			padding: 0 5px;
			color: #959595;
		}
		div:nth-child(2){
			color: #595959;
		}
		.del_icon {
			display: none;
		}

		&:hover {
			background-color: #03a9f41c;
			transition: background-color 0.3s;

			.del_icon {
				display: inline-block;
			}
		}

	}
}